﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using DAL.Service;
using DAL.Service.Impl;

namespace BIZ
{
    public class InfomationPublishOper
    {
        IInfomationPublishService ips = new InfomationPublishServiceImpl();
        /// <summary>
        /// 获取相对应模版列表
        /// </summary>
        /// <param name="pageno"></param>
        /// <param name="pagesize"></param>
        /// <param name="template"></param>
        /// <returns></returns>
        public IList getlist(int pageno, int pagesize, int template)
        {
            return ips.getlist(pageno, pagesize, template);
        }

        public IList getlistweb(int pageno, int pagesize, int template)
        {
            return ips.getlistweb(pageno, pagesize, template);
        }

        public object save(object entity)
        {
            return ips.save(entity);
        }
        /// <summary>
        /// 获取单笔记录信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IList getinfomationbyid(int id)
        {
            return ips.getinfomationbyid(id);
        }

        /// <summary>
        /// 删除信息
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public int delete(int id)
        {
            return ips.delete(id);
        }
    }
}
